package com.imooc.demo.service;

import com.imooc.demo.entity.Category1;

import java.util.List;


public interface Category1Service {

    /**
     * 列出所有种类列表信息
     * @return
     */
    List<Category1> getCategory1List();

    /**
     * 列出category1Id所指定的种类的信息
     * @param category1Id
     * @return
     */
    Category1 getCategory1ById(int category1Id);

    /**
     * 添加种类信息
     * @param category1
     * @return
     */
    boolean addCategory1(Category1 category1);

    /**
     * 修改种类信息
     * @param category1
     * @return
     */
    boolean modifyCategory1(Category1 category1);

    /**
     * 删除种类信息
     * @param category1Id
     * @return
     */
    boolean deleteCategory1(int category1Id);

    /**
     *  根据category1Id查找该类型下的二级分类
     */
    Category1 selectCategory1ById(int category1Id );
    Category1 AselectCategory1ById(int category1Id );

    Category1 selectCategory2ById(int category2Id );


}
